package components.scanario.elements
{
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import components.c_pcomponent;
	
	import flash.geom.Rectangle;
	
	public class c_curtain extends c_pcomponent {
		private var _ctrl: uif_ecomponent;
		public function c_curtain(parent: uif_component, a_ctrl: uif_ecomponent, styleClass:Object='') {
			_ctrl = a_ctrl;
			super(parent, styleClass);
		}
		
		override protected function paint(a_styleClass: String, a_method: String = 'draw_rect'): void {
			var rect: Rectangle = getBorder();
			begin2(style);
			graphics.drawRect(rect.x, rect.y, rect.width, rect.height);
			if (style.fill_color) this.graphics.endFill();
		}
	}
}